package com.wzl.myviewgroup.utils;

import android.content.Context;

import com.wzl.myviewgroup.App;

public class SizeUtils {
    public static int dip2px(float dp) {
        float scale= App.getAppContext().getResources().getDisplayMetrics().density;
        return (int)(dp*scale+0.5f);
    }
}
